import Axios from "/@/utils/Axios";


export function getArticleType(data: any): Promise<any> {
  return Axios.get("/backapi/articleTypes", data);
}

export function addArticleType(data: any): Promise<any> {
  return Axios.post("/backapi/articleTypes", data);
}

export function editArticleType(data: any): Promise<any> {
  return Axios.put(`/backapi/articleTypes/${data.id}`, data);
}

export function updateArticleTypeStatus(data: any): Promise<any> {
  return Axios.patch(`/backapi/articleTypes/${data.id}/status`, data);
}
